home *** CD-ROM | disk | FTP | other *** search
/ Aminet 52 / Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso / Aminet / game / patch / WHDIGamesU-Z.lzh / Z-Out.lha / Z-OutHD / Install-ZOut next >
Text File  |  2001-03-20  |  2KB  |  119 lines

  1. (set #CI_unit 0)
  2. (set #CI_drive ("DF%ld:" #CI_unit))
  3.  
  4.  
  5. ;----------------------------
  6.  
  7. ;try to figure out a place where the user usually installs his games
  8. (if (exists "Games:" (noreq) )
  9.     (set @default-dest "Games:")
  10.     (if (exists "SYS:Games" (noreq) )
  11.         (set @default-dest "SYS:Games")
  12.         (if (exists "Work:Games" (noreq) )
  13.             (set @default-dest "Work:Games")
  14.             (if (exists "JEUX:" (noreq) )
  15.                (set @default-dest "JEUX:")
  16.                (set @default-dest "SYS:")
  17.             )
  18.         )
  19.     )
  20. )
  21.  
  22. (set #defdest
  23. (askdir
  24.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  25.     (help @askdir-help)
  26.     (default @default-dest)
  27.     (disk)
  28. )
  29. )
  30.  
  31. (set @default-dest #defdest)
  32.  
  33.  
  34. (set #gamever
  35.     (askchoice
  36.         (prompt "Which version do you want to install?")
  37.         (help    @askoptions-help)
  38.         (choices
  39.            "JST"
  40.            "WHDLoad"
  41.         )
  42.     )
  43. )
  44.  
  45.  
  46.  
  47. (set #dest (tackon @default-dest @app-name))
  48.  
  49.  
  50. (makedir #dest
  51.     (help @makedir-help)
  52.     (infos)
  53. )
  54.  
  55. ;----------------------------
  56.  
  57. (if (= 0 #gamever)
  58. (
  59.  
  60. (message "\n\n\nThis loader needs the JST program (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\nJST is available from aminet (game/patch) or on my site")
  61.  
  62. (copyfiles
  63.     (help @copyfiles-help)
  64.     (source "ZoutHD")
  65.     (dest #dest)
  66.     (infos)
  67. )
  68. )
  69. (
  70. (copyfiles
  71.     (help @copyfiles-help)
  72.     (source "Z-out.slave")
  73.     (dest #dest)
  74. )
  75. (copyfiles
  76.     (help @copyfiles-help)
  77.     (source "Z-out.icon")
  78.     (dest #dest)
  79.     (newname "Z-out.info")
  80. )
  81.  
  82.  
  83. )
  84. )
  85.  
  86. (copyfiles
  87.     (help @copyfiles-help)
  88.     (source "zouthd.readme")
  89.     (dest #dest)
  90.     (infos)
  91. )
  92.  
  93. (set #CI_unit
  94.     (askchoice
  95.         (prompt "From which disk unit do you want\nto install the game")
  96.         (help    @askoptions-help)
  97.         (choices
  98.            "DF0:"
  99.            "DF1:"
  100.            "DF2:"
  101.            "DF3:"
  102.         )
  103.     )
  104. )
  105.  
  106. (set #CI_drive ("DF%ld:" #CI_unit))
  107.  
  108.  
  109. (message ("\nInsert %s disk into drive %s (ignore workbench errors)!" @app-name #CI_drive))
  110.     (if
  111.         (= 0 (run ("disk2file %ld \"%s/Z-Out.d1\" SKIPROB >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  112.         ("")
  113.         (abort "\"disk2file\" must be in your PATH !")
  114.     )
  115.  
  116.  
  117. (exit)
  118.  
  119.